
<template>
  <div> 
     <el-input v-model="inputVal" v-bind="$attrs" v-on="$listeners">
      <template #prepend>
        <slot name="prepend"></slot>
      </template> 
     </el-input>
     
  </div>
</template>

<script>
export default {
    name:'MY-INPUT',
    inheritAttrs: false,
    props:{
        value:{
            type:String,
            default:''
        },
      
    },
   computed: {
    inputVal: {
      get() {
        return this.value;
      },
      set(val) {
        this.$emit('input', val);
      }
    }
  }
}
</script>

